const parentCode = 'businessConfigurationManagement'
export default [{
  path: "/businessConfigurationManagement",
  meta: {
    title: "业务配置管理",
    code: parentCode, //来确定是哪个模块，一级菜单的code
  },
  component: (resolve) => require(["@/views/businessConfigurationManagement"], resolve),
  children: [{
      path: "/",
      redirect: "spotCheckConfiguration",
    },
    {
      path: "spotCheckConfiguration",
      name: "spotCheckConfiguration",
      meta: {
        title: "抽查配置",
        parentCode: parentCode, // 来确定是哪个模块，一级菜单的 code
        code: "spotCheckConfiguration", // 二级菜单的 code
      },
      component: (resolve) => require(["@/views/businessConfigurationManagement/spotCheckConfiguration"], resolve),
    },
    {
      path: "securityMeasuresConfiguration",
      name: "securityMeasuresConfiguration",
      meta: {
        title: "安全措施配置",
        parentCode: parentCode, // 来确定是哪个模块，一级菜单的 code
        code: "securityMeasuresConfiguration", // 二级菜单的 code
      },
      component: (resolve) => require(["@/views/businessConfigurationManagement/securityMeasuresConfiguration"], resolve),
    },
    {
      path: "defectLevelConfiguration",
      name: "defectLevelConfiguration",
      meta: {
        title: "消缺期限配置",
        parentCode: parentCode, // 来确定是哪个模块，一级菜单的 code
        code: "defectLevelConfiguration", // 二级菜单的 code
      },
      component: (resolve) => require(["@/views/businessConfigurationManagement/defectLevelConfiguration"], resolve),
    },
    {
      path: "shiftConfiguration",
      name: "shiftConfiguration",
      meta: {
        title: "交接班配置",
        parentCode: parentCode, // 来确定是哪个模块，一级菜单的 code
        code: "shiftConfiguration", // 二级菜单的 code
      },
      component: (resolve) => require(["@/views/businessConfigurationManagement/shiftConfiguration"], resolve),
    },
    {
      path: "printTemplateConfiguration",
      meta: {
        title: "打印模板配置",
        parentCode: parentCode, //来确定是哪个模块，一级菜单的code
        code: "printTemplateConfiguration", //二级菜单的code
      },
      component: (resolve) =>
        require(["@/views/businessConfigurationManagement/printTemplateConfiguration"], resolve),
      children: [{
          path: "/",
          redirect: "workTicketTemplate",
        },
        {
          path: "workTicketTemplate",
          name: "workTicketTemplate",
          meta: {
            title: "工作票打印模板",
            parentCode: parentCode, //来确定是哪个模块，一级菜单的code
            code: "printTemplateConfiguration", //二级菜单的code
          },
          component: (resolve) =>
            require([
              "@/views/businessConfigurationManagement/printTemplateConfiguration/workTicketTemplate",
            ], resolve),
        },
        {
          path: "operationTicketTemplate",
          name: "operationTicketTemplate",
          meta: {
            title: "操作票打印模板",
            parentCode: parentCode, //来确定是哪个模块，一级菜单的code
            code: "printTemplateConfiguration", //二级菜单的code
          },
          component: (resolve) =>
            require([
              "@/views/businessConfigurationManagement/printTemplateConfiguration/operationTicketTemplate",
            ], resolve),
        },
        {
          path: "dutyRecordTemplate",
          name: "dutyRecordTemplate",
          meta: {
            title: "交接班打印模板",
            parentCode: parentCode, //来确定是哪个模块，一级菜单的code
            code: "printTemplateConfiguration", //二级菜单的code
          },
          component: (resolve) =>
            require([
              "@/views/businessConfigurationManagement/printTemplateConfiguration/dutyRecordTemplate",
            ], resolve),
        },
      ],
    },
    {
      path: "processConfiguration",
      name: "processConfiguration",
      meta: {
        title: "流程配置",
        parentCode: parentCode, // 来确定是哪个模块，一级菜单的 code
        code: "processConfiguration", // 二级菜单的 code
      },
      component: (resolve) => require(["@/views/businessConfigurationManagement/processConfiguration"], resolve),
    },
    {
      path: "paramMonitoringConfiguration",
      name: "paramMonitoringConfiguration",
      meta: {
        title: "监测参数配置",
        parentCode: parentCode, // 来确定是哪个模块，一级菜单的 code
        code: "paramMonitoringConfiguration", // 二级菜单的 code
      },
      component: (resolve) => require(["@/views/businessConfigurationManagement/paramMonitoringConfiguration"], resolve),
    },
  ],
}, ];